<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8">
		<title>我代理的用户</title>
		<meta name="viewport" content="initial-scale=1, maximum-scale=1">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<link rel="stylesheet" href="//g.alicdn.com/msui/sm/0.6.2/css/sm.css">
		<!--如果你用到了拓展包中的组件，还需要引用下面两个-->
		<link rel="stylesheet" href="//g.alicdn.com/msui/sm/0.6.2/css/sm-extend.css">
		<link rel="stylesheet" href="{{asset('/css/mobile/common_web.css')}}">
		<link rel="stylesheet" href="{{asset('/css/mobile/agency_user.css')}}">
{{--        <link rel="stylesheet" type="text/css" href="{{asset('images/iconfont_sanka/iconfont.css')}}">--}}
	</head>
	<body>
        <div class="page-group">
            <!-- 单个page ,第一个.page默认被展示-->
            <div class="page">
                <!-- 标题栏 -->
                <header class="bar bar-nav" style="background:#24314D;color:#fff;height:3rem;line-height:3rem;">
                    <a class="icon icon-left pull-left external" style="font-size:1.4rem;color:#fff;line-height:2rem;" href='{{url('/admin/person')}}'></a>
                    <h1 class="title" style="color:#fff;line-height:3rem;">我代理的用户</h1>
                </header>

                <!-- 工具栏 -->
                <nav class="bar bar-tab" style="background:#fff;">
                    <a class="tab-item external external" href="{{url('/admin/home')}}">
                        <i class="icon iconfont">&#xe649;</i>
                        <span class="tab-label">首页</span>
                    </a>
                    <a class="tab-item external active external" href="{{url('/admin/person')}}">
                        <i class="icon iconfont">&#xe648;</i>
                        <span class="tab-label">个人设置</span>
                    </a>
                </nav>

                <!-- 这里是页面内容区 -->
                <div class="content pull-to-refresh-content" data-ptr-distance="55">
                    <!-- 默认的下拉刷新层 -->
                    <div class="pull-to-refresh-layer">
                        <div class="preloader"></div>
                        <div class="pull-to-refresh-arrow"></div>
                    </div>
                        <div class="list-block">
                            <ul style="background:#24314D;color:#fff;">
                                <li class="item-content" style="color:#2C4979;font-size:0.8rem;font-weight:700;background:#fff;height:3rem;">
                                    <div class="item-inner"  style="height:3rem;">
                                        <div class="item-title">用户姓名</div>
                                        <div class="item-title">联系方式</div>
                                        <div class="item-title">注册时间</div>
                                        <div class="item-title">用户状态</div>
                                    </div>
                                </li>
                                @foreach($list as $v)
                                <li class="item-content">
                                    <div class="item-inner">
                                        <div class="item-title">{{$v['real_name']}}</div>
                                        <div class="item-title">{{$v['phone']}}</div>
                                        <div class="item-title">{{$v['create_at']}}</div>
                                        @if($v['status'] == 0)
                                        <div class="item-title">未审核</div>
                                        @elseif($v['status'] == 1)
                                        <div class="item-title">审核中</div>
                                        @elseif($v['status'] == 2)
                                        <div class="item-title">已审核</div>
                                        @elseif($v['status'] == 3)
                                        <div class="item-title">暂时停用</div>
                                        @elseif($v['status'] == 4)
                                        <div class="item-title">打回</div>
                                        @elseif($v['status'] == 5)
                                        <div class="item-title">注销</div>
                                        @endif
                                    </div>
                                </li>
                                @endforeach

                            </ul>
                        </div>
                    <div class="content-block">
                        <p><a href="#" class="open-preloader"></a></p>
                    </div>
            </div>
        </div>
        </div>
	</body>

	<script type='text/javascript' src='//g.alicdn.com/sj/lib/zepto/zepto.js' charset='utf-8'></script>
	<script type='text/javascript' src='//g.alicdn.com/msui/sm/0.6.2/js/sm.js' charset='utf-8'></script>
	<script type='text/javascript' src='//g.alicdn.com/msui/sm/0.6.2/js/sm-extend.js' charset='utf-8'></script>
	<script type="text/javascript" src="//g.alicdn.com/msui/sm/0.6.2/js/sm-city-picker.min.js" charset="utf-8"></script>
    <script>$.init()</script>
    <script>
        $(function(){
            // 添加'refresh'监听器
            $(document).on('refresh', '.pull-to-refresh-content',function(e) {
                // 模拟2s的加载过程
                setTimeout(function() {
                    var cardNumber = $(e.target).find('.card').length + 1;
                    var cardHTML = '<div class="card">' +
                        '<div class="card-header">card'+cardNumber+'</div>' +
                        '<div class="card-content">' +
                        '<div class="card-content-inner">' +
                        '这里是第' + cardNumber + '个card，下拉刷新会出现第' + (cardNumber + 1) + '个card。' +
                        '</div>' +
                        '</div>' +
                        '</div>';

                    $(e.target).find('.card-container').prepend(cardHTML);
                    // 加载完毕需要重置
                    $.pullToRefreshDone('.pull-to-refresh-content');
                }, 2000);
            });
        })
    </script>
</html>
